package com.yangl.controller;

import com.yangl.domain.BannerInfo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

/**
 * Created by lyang on 2016/10/28.
 */
@Controller
public class BannerController {
    @RequestMapping("banners")
    public String getBanners(HttpServletRequest request) {
        ArrayList<BannerInfo> list = new ArrayList<BannerInfo>();
        list.add(new BannerInfo("http://www.10100000.com/m/iloan/apply1.html?utm_source=phmd-handpaypay&utm_medium=mkt&utm_campaign=mkt&WT.mc_id=CXX-HANDPAYPAY-&", "/banner/MPOSBanners/BannerResources/iLoanbanner.png", "平安iLoan"));
        list.add(new BannerInfo("http://m.niwodai.com/index.do?method=ac&artId=3800001383297513&nwd_ext_aid=3000001491258245&source_id=", "/banner/MPOSBanners/BannerResources/jiakadai_new.png", "嘉卡贷"));
        list.add(new BannerInfo("http://www.10100000.com/m/daikuan/zed/index.html?utm_source=phmd-handpaypay&utm_medium=mkt&utm_campaign=mkt&WT.mc_id=CXX-HANDPAYPAY-&", "/banner/MPOSBanners/BannerResources/addictionebanner.png", "平安宅e贷"));
        list.add(new BannerInfo("http://m.niwodai.com/index.do?method=ac&artId=3800001382834073&nwd_ext_aid=3000001491257885&source_id=", "/banner/MPOSBanners/BannerResources/jiayingdai.png", "嘉英贷"));
//        list.add(new BannerInfo("http://www.handpay.com.cn/web/qq.jpg", "/banner/MPOSBanners/BannerResources/qq.jpg", "QQ在线咨询"));
        request.setAttribute("banners",list);
        return "banners";
    }

}
